package cn.java.threadmodel.workthread;

/**
 * @author 小石潭记
 * @date 2021/12/18 19:50
 * @Description: 请求任务
 */
public class Request {
    private final String name;
    private final int number;

    public Request(final String name,final int number) {
        this.name = name;
        this.number = number;
    }

    public void exeute(){
        System.out.println(Thread.currentThread().getName()+" executed "+this);
    }
    @Override
    public String toString() {
        return "Request=> NO. "+number+" Name. "+name;
    }
}

